<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProductVersion>8.0.50727</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{4A9E3523-48F0-4BDF-A0F4-49DAD4431FAB}</ProjectGuid>
    <OutputType>Exe</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>ConsoleProject</RootNamespace>
    <AssemblyName>ConsoleProject</AssemblyName>
    <TestProp>TestVal</TestProp>
    <EvalProp>$(TestProp)</EvalProp>
  	<Foo>support\file1.txt</Foo>
  	<ExistsTest Condition="Exists('$(Foo)')">OK</ExistsTest>
  	<ExistsNotInsideQuotesTest Condition="Exists($(Foo))">OK</ExistsNotInsideQuotesTest>
  	<CASE1>value1</CASE1>
  	<Case1>value2</Case1>
  	<Case2>$(CasE1)</Case2>
  	<Case3>$(CASE1)</Case3>
  	<EmptyStringConditionProp Condition="'$(UndefinedProperty)' == ''">OK</EmptyStringConditionProp>
  	<TestRewrite>Val</TestRewrite>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>True</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>False</Optimize>
    <OutputPath>bin\Debug\</OutputPath>
    <DefineConstants>DEBUG;TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugType>pdbonly</DebugType>
    <Optimize>True</Optimize>
    <OutputPath>bin\Release\</OutputPath>
    <DefineConstants>TRACE</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="System" />
    <Foo Include="Foo.$(EvalProp)">
    	<Meta1>$(Configuration)</Meta1>
    </Foo>
  </ItemGroup>
  <ItemGroup>
    <None Include="*.txt" AttributeMetadata="Test" OverriddenAttributeMetadata="$(Configuration)">
    	<Meta2>$(Configuration)</Meta2>
		<OverriddenAttributeMetadata>$(Platform)</OverriddenAttributeMetadata>
    </None>
	<Files Include="file1.txt">
	</Files>
	<Files Update="*.txt">
		<MetaUpdate>$(Configuration)</MetaUpdate>
	</Files>
	<Files Include="file2.txt">
	</Files>
	<Files Update="file2.txt">
		<MetaUpdate2>$(Platform)</MetaUpdate2>
	</Files>
    <None Include="*.txt">
    	<Meta2>$(Configuration)</Meta2>
    </None>
    <Transformed Include="@(None -&gt; WithMetadataValue('Meta2', 'Debug'))">
        <Meta3>$(Configuration)</Meta3>
    </Transformed>
  </ItemGroup>
  <Target Name="Conditioned" Condition="false"></Target>
  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
  <!-- Imported twice for verification -->
  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
  <Import Project="extra.csproj" />
</Project>
